<link href="../css/bootstrap/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div class="doc-manage" data-options="border:false">
	<div class="well well-small" style="margin: 5px;">
		
		<p>
			<span class="badge">提示</span>
			<font color="red"> 单击  </font><strong>文档类型</strong>，你可以对相应分类的文档进行查看!<font color="red"> 双击  </font><strong>文档所在行</strong>，可以对文档进行进行查看。
		</p>
	</div>
	<table style="width:100%">
		<tr>
			<td style="width:20%;padding-left:5px;padding-top:0px">
			
				<div class="doc-type">
					<table>
						<tr>
							<td style="padding-left:4px;padding-bottom:4px;" class="doc-type-list-btn">
								
									
							</td>						
							
						</tr>
					</table>
				</div>				
				
				
				<table class="dg-type easyui-treegrid" 
					data-options="rownumbers:true,
					animate: true,									
					striped:true,
					border:true,
					//singleSelect:false,
					idField: 'id',
					treeField: 'name',					
					fitColumns: true,
					checkOnSelect:true,					
					selectOnCheck:true">
					
					<thead>						
						<tr>							
							<th field="name" width="100" align="left" halign="center">分类名称</th>
														
						</tr>
					</thead>
					
				</table>
			</td>
			<td style="width:75%;padding-left:5px;padding-top:2px">
				 <div id="doc-detail" class="doc-detail">
					<div  class="doc-detail-list-btn">
						
					</div>
				</div>
				
				<table id="dg-detail" class="easyui-datagrid dg-detail" 
					data-options="rownumbers:true,
					animate: true,									
					striped:true,
					border:true,
					//singleSelect:false,
					idField: 'id',									
					fitColumns: true,
					checkOnSelect:true,
					pagination : true,
					selectOnCheck:true					
					">
					
					<thead>						
						<tr>
							<th field="ck" checkbox="true" ></th>
							<th field="name" width="100" align="left" halign="center">文档标题</th>
							<th field="state_id" width="30" align="center" data-options="{
								formatter:function(value,row,index){
									if(value && value==1){
										return '是'
									}
									return '否';						
								}
							}">是否公开</th>
							<th field="createTime" width="60" align="center">创建时间</th>
							<th field="public_date" width="60" align="center">发布时间</th>
							<th field="public_dept_name" width="60" align="center">发布部门</th>
							<th field="public_user_name" width="60" align="center">发布人</th>			
							<th field="comment" width="30" align="center">备注</th>
							<th field="status" width="30" align="center" data-options="{
								formatter:function(value,row,index){
									if(value){
										switch(value){
											case '0':
											return '<span><font color=blue>已提交</font></span>';
											break;
											case '1':
											return '<span><font color=green>审核通过</font></span>';
											break;
											case '-1':
											return '<span><font color=red>未通过</font></span>';
											break;
										}
									}
									return null;						
								}
							}">审核状态</th>
							
							<th field="arc_num" width="20" align="center" data-options="{
								formatter:function(value,row,index){
									if(value && value>=1){
										return '<span><font color=blue>附件</font></span>';
									}else{
										return null
									}
								}
							}
							">附件</th>
						</tr>
					</thead>
					
				</table>
			</td>
		</tr>
	</table>		
</div>
<script>

requirejs(['docListPage','party','domReady!'],function(dept,party,doc){
	dept.init({
		doc:doc,
		onWindowClose:party.onClose,
		initElement:party.baseFileBut,
		rootId:'doc-docdetail',
		auditEnable:true});		
});	

</script>
